//简写形式(参数属性的写法)
class Person {
  constructor(
    public name: string,
    private age: number,
    readonly height: number
  ) {}
}

const p = new Person("测hi", 23, 12);
